//
//  WTBroadCastView.h
//  WTLiveSDKDemo
//
//  Created by ben on 2016/11/16.
//  Copyright © 2016年 ben. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Masonry.h"
#import "WTVideoView.h"

@interface NSDictionary (WTBroadCast)
+ (NSDictionary*)wt_broadCast:(NSString*)anchor_id screening_id:(NSString*)screening_id verify_id:(NSString*)verify_id;

@property (nonatomic,strong) NSString* anchor_id;
@property (nonatomic,strong) NSString* screening_id;
@property (nonatomic,strong) NSString* verify_id;
@end


@class WTBroadCastView;
@protocol WTBroadCastViewDelegate <NSObject>
@optional


/**
 进入直播间需要认购

 @param broadCastView broadCastView description
 @param vertify_id 认购的id
 */
- (void)broadCastViewNeedPay:(WTBroadCastView*)broadCastView vertify_id:(NSString*)vertify_id;


/**
 返回

 @param broadCastView broadCastView description
 */
- (void)broadCastViewGoBack:(WTBroadCastView*)broadCastView;




/**
 点击进入礼物详情页面

 @param broadCastView broadCastView description
 */
- (void)broadCastViewGoGiftDetail:(WTBroadCastView*)broadCastView;
@end


@interface WTBroadCastView : UIView
@property (nonatomic,strong) WTVideoView*   videoView;
@property (nonatomic,strong) NSDictionary*  params;
@property (nonatomic,weak) id<WTBroadCastViewDelegate> delegate;

/**
 开始播放
 */
- (void)start;


/**
 结束播放
 */
- (void)finish;
@end
